home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / precog2_1.lha / Precognition2_1 / src / src.lha / Library / GraphicObjectClass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-16  |  2.3 KB  |  93 lines

  1. /* ==========================================================================
  2. **
  3. **                   GraphicObjectClass.h
  4. **
  5. ** ©1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef GRAPHICOBJECTCLASS_H
  11. #define GRAPHICOBJECTCLASS_H
  12.  
  13. #include "PObjectClass.h"
  14. #include "GraphicObject.h"
  15. #include "parms.h"
  16.  
  17.  
  18. struct GraphicObjectClass
  19. {
  20.     OBJECTMETHODS
  21.  
  22.    Point (*Location) __PARMS(( GraphicObject *self ));
  23.  
  24.    Point (*SetLocation)
  25.              __PARMS(( GraphicObject *self,
  26.               PIXELS       LeftEdge,
  27.               PIXELS       TopEdge ));
  28.  
  29.    Point (*Size) __PARMS(( GraphicObject* self ));
  30.  
  31.    Point (*AskSize)
  32.              __PARMS(( GraphicObject *self,
  33.               PIXELS       Width,
  34.               PIXELS       Height ));
  35.  
  36.    Point (*SetSize)
  37.              __PARMS(( GraphicObject *self,
  38.               PIXELS       Width,
  39.               PIXELS       Height ));
  40.  
  41.    UWORD  (*SizeFlags)
  42.              __PARMS(( GraphicObject *self ));
  43.  
  44.    void (*Render)
  45.              __PARMS(( GraphicObject *self,
  46.               RastPort     *RPort ));
  47.  
  48.    BOOL (*SetTitle)
  49.              __PARMS(( GraphicObject *self,
  50.               char          *title ));
  51.  
  52.    char *(*Title) __PARMS(( GraphicObject *self ));
  53.  
  54. /* additions for font information */
  55.    TextAttr *(*DefaultFont) __PARMS(( GraphicObject *self ));
  56.    BOOL (*SetDefaultFont) __PARMS(( GraphicObject *self, TextAttr *default_font ));
  57.  
  58.    AlignInfo *(*TextAlignment)
  59.              __PARMS(( GraphicObject *self ));
  60.  
  61.    BOOL (*SetTextAlignment)
  62.              __PARMS(( GraphicObject *self,
  63.               UBYTE        Flags,
  64.               BYTE          Xpad,
  65.               BYTE          Ypad ));
  66.  
  67.    struct BuilderMethods *BuilderMethods;
  68.  
  69. };
  70.  
  71.  
  72. struct GraphicObjectClass *GraphicObjectClass __PARMS(( void ));
  73.  
  74. void GraphicObjectClass_Init __PARMS(( struct GraphicObjectClass *class ));
  75.  
  76. UWORD GraphicObject_SizeFlagsNone __PARMS(( GraphicObject *self ));
  77. UWORD GraphicObject_SizeFlagsX __PARMS(( GraphicObject *self ));
  78. UWORD GraphicObject_SizeFlagsY __PARMS(( GraphicObject *self ));
  79. UWORD GraphicObject_SizeFlagsAll __PARMS(( GraphicObject *self ));
  80.  
  81.  
  82.  
  83.  
  84. AlignInfo *TextAlignment __PARMS(( GraphicObject* self ));
  85.  
  86. BOOL SetTextAlignment __PARMS(( GraphicObject* self,
  87.              UBYTE     Flags,
  88.              BYTE     Xpad,
  89.              BYTE     Ypad ));
  90.  
  91.  
  92. #endif
  93.